package com.example.shop.commodity.dao;

import com.example.shop.base.BaseDao;
import com.example.shop.commodity.entity.ShopCart;
import com.example.shop.common.annotation.DataSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hcj
 */
@Mapper
public interface ShopCartDao extends BaseDao<ShopCart> {
    ShopCart getById(@Param("cid") String cid, @Param("uid") String uid);

    ShopCart getByOne(@Param("id") String id, @Param("uid") String uid);

    List<ShopCart> getByUid(@Param("uid") String uid);
}